home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 21 / Cream of the Crop 21 (Terry Blount) (October 1996).iso / business / aesti967.zip / -PRINT.BAT < prev    next >
DOS Batch File  |  1996-07-07  |  2KB  |  97 lines

  1. echo off
  2. cls
  3. if (%1)==(1) goto port1
  4. if (%1)==(2) goto port2
  5. goto Help
  6.  
  7. :port1
  8. echo.
  9. echo    Printing to Port 1
  10. echo    ──────────────────
  11. echo       There MUST be a printer attached to printer port 1 and the printer
  12. echo       MUST be on-line
  13. echo.
  14. echo       If printing to Port 1 does not work then try printing to Port 2
  15. echo.
  16. echo.
  17. echo             Press any key to start printing or CTRL+C to cancel
  18. echo.
  19. pause>nul
  20. echo.
  21. echo             Press CTRL+C or CTRL+BREAK to stop printing
  22. echo.
  23. if exist -manuale.doc goto print1
  24. goto NoFile
  25.  
  26. :print1
  27. type -manuale.doc>lpt1
  28. goto quit
  29.  
  30.  
  31. :port2
  32. echo.
  33. echo    Printing to Port 2
  34. echo    ──────────────────
  35. echo       There MUST be a printer attached to printer port 2 and the printer
  36. echo       MUST be on-line
  37. echo.
  38. echo       If printing to Port 2 does not work then try printing to Port 1
  39. echo.
  40. echo.
  41. echo             Press any key to start printing or CTRL+C to cancel
  42. echo.
  43. pause>nul
  44. echo.
  45. echo             Press CTRL+C or CTRL+BREAK to stop printing
  46. echo.
  47. if exist -manuale.doc goto print2
  48. goto NoFile
  49.  
  50. :print2
  51. type -manuale.doc>lpt2
  52. goto quit
  53.  
  54.  
  55.  
  56. :NoFile
  57. cls
  58. echo.
  59. echo   Unable to find -MANUALE.DOC
  60. echo   ───────────────────────────
  61. echo.
  62. echo     Unable to print the manual as the file -MANUALE.DOC was not found in
  63. echo     the current directory, change to the directory where this file can
  64. echo     be found and try again
  65. goto Note
  66.  
  67.  
  68.  
  69. :Help
  70. echo.
  71. echo   Prints the Help File
  72. echo   ────────────────────
  73. echo     Prints the help file -MANUALE.DOC to a printer on Port 1 (LPT1) or
  74. echo     Port 2 (LPT2), uses a command line option or either 1 or 2
  75. echo.
  76. echo        To print to a printer on LPT1 use   -PRINT 1
  77. echo        To print to a printer on LPT2 use   -PRINT 2
  78. echo.
  79. echo     If printing to the selected Printer Port does not work then try using
  80. echo     a different Port i.e. if you tried 1 first then try 2
  81. echo.
  82. echo     If neither of the above works then import -MANUALE.DOC into your word
  83. echo     processor, replace all  's with your WP's version of page breaks and
  84. echo     then print it from within the WP.
  85. echo.
  86. echo     If you are still having problems then get someone who knows about
  87. echo     computers to print it out for you !
  88.  
  89. :Note
  90. echo.
  91. echo     Please note that -MANUALE.DOC and -PRINT.BAT must be in the same
  92. echo     directory as each other
  93.  
  94. :quit
  95. echo.
  96.  
  97.